package com.cehome.cloudbox.flowalbe;

import lombok.Data;

import java.util.List;

@Data
public class FlowElementPojo implements Comparable<FlowElementPojo> {

    private String id,
            targetFlowElementId,//流转线的目标任务节点id
            resourceFlowElementId,//流转线的出线资源节点id
            flowElementType,//流转线类型
            elementName,
            roleStr;
    private int orderNo;

    private boolean huiq;

    private boolean roleApprove;

    //审批用户id集合
    List<String>  actorId;


    @Override
    public int compareTo(FlowElementPojo o) {
        if(this.orderNo<o.getOrderNo()){
            return -1;
        }else if(this.orderNo>o.getOrderNo()){
            return 1;
        }else{
            return 0;
        }
    }
}
